package cn.hk.vaccination.mapper;

import cn.hk.vaccination.domain.VaccinesPlan;
import cn.hk.vaccination.domain.vo.VaccinationVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 儿童接种计划关联别 Mapper 接口
 * </p>
 *
 * @author xu
 * @since 2023-03-10
 */
@DataSource(DataSourceType.KELIN)
public interface VaccinesPlanMapper extends BaseMapper<VaccinesPlan> {

    List<VaccinesPlan> selectOneByVid(@Param("vid") Long vaccinesId);

    List<VaccinationVo> selectListByDeptId(@Param("deptId")Long deptId,@Param("monthValue") Double monthValue);

    List<VaccinationVo> selectListByDeptId2Chr(@Param("deptId")Long deptId);
}
